package com.kgcx.common.eum;

public enum CommonDataEeum {


	/**
	 * 用户
	 */
	MARRIAGE(1,"未婚"),
	UN_MARRIAGE(2,"已婚"),
	DISSOCIATON(3,"离异"),




	
	/*数据状态*/
	DATA_STATE_NORMAL(101,"有效"),
	DATA_STATE_INVALID(102,"无效"),
	
	/*结算状态 0未结算 1已结算 2未知*/
	PAY_STATE_NO_RECKON(0,"未结算"),
	PAY_STATE_YES_RECKON(1,"已结算"),
	PAY_STATE_UNKNOWN(2,"未知"),
	
	/**
	 * 支付端类型 
	 */
	PAY_TYEP_PASSENGER(100,"乘客端"),
	PAY_TYEP_DRIVER(200,"司机端"),
	PAY_TYEP_SMALL_ROUTINE(300,"小程序端");
	
	private Integer code;
	private String msg;
	
	CommonDataEeum(Integer code, String msg){
		this.code=code;
		this.msg=msg;
	}






	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


	/**
	 * 婚姻状况根据codeId 返回
	 */
	public static String marriage(Integer code){

		if (code == null) {
			return "";
		}
		switch (code.intValue()) {
			case 1:
				return MARRIAGE.getMsg();

			case 2:
				return UN_MARRIAGE.getMsg();

			case 3:
				return DISSOCIATON.getMsg();

			default:
				return "";
		}
	}

}
